package com.gxa.p2p.businessExceptionCode;

public enum ErrorCode {
    //枚举实例
    FAILED(1,"失败"),
    ;
    private Integer code;
    private String desc;

    private ErrorCode(Integer code,String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "ErrorCode{" + "code='" + code + '\'' + ", desc='" + desc + '\'' + '}';
    }
}
